Electronic device and method for sharing screen data

ABSTRACT

An electronic device is disclosed. An electronic device comprises a display, a communication circuit configured to communicate with a first peripheral device, a memory configured to store first authentication information associated with the first peripheral device, and a processor, wherein the processor is configured to control the electronic device to: broadcast a first message via the communication circuit, receive a connection request message from the first peripheral device receiving the first message, authenticate the first peripheral device based on the first authentication information associated with the first peripheral device in response to the reception of the connection request message, and transmit screen data being displayed on the display to the first peripheral device via the communication circuit based on the authentication being valid.

CROSS-REFERENCE TO RELATED APPLICATION

This application is based on and claims priority under 35 U.S.C. § 119to Korean Patent Application No. 10-2018-0022250, filed on Feb. 23,2018, in the Korean Intellectual Property Office, the disclosure ofwhich is incorporated by reference herein its entirety.

BACKGROUND 1. Field

The present disclosure relates to a screen mirroring technique forsharing screen data.

2. Description of Related Art

As a mobile device (e.g. a smartphone, a tablet PC) becomes smaller, adisplay included therein is becoming smaller. Thus, the mobile devicemay provide a screen mirroring function that allows a small screen to beviewed on a different sized display. Alternatively, the mobile devicemay provide a screen mirroring that allows a screen thereof to be viewedon a plurality of devices in an IoT environment.

When a screen mirroring function is used, information displayed on ascreen of a mobile device is exposed to other electronic devices, sothat it is difficult for a user's personal information to be protected.Accordingly, the screen mirroring function is performed in a manner thatthe mobile device providing screen data requests a screen mirroring.However, in this case, the screen mirroring function is only availablewhen the user has the mobile device in person.

The above information is presented as background information only toassist with an understanding of the present disclosure. No determinationhas been made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the present disclosure.

SUMMARY

Aspects of the present disclosure address at least the above-mentionedproblems and/or disadvantages and provide at least the advantagesdescribed below. Accordingly, an aspect of the present disclosure is toprovide an electronic device that allows a screen mirroring function tobe requested from not only a mobile device providing screen data, butalso an electronic device receiving screen data.

In accordance with an aspect of the present disclosure, an electronicdevice comprises a display, a communication circuit configured tocommunicate with a first peripheral device, a memory configured to storefirst authentication information associated with the first peripheraldevice, and a processor, wherein the processor is configured to controlthe electronic device to: broadcast a first message via thecommunication circuit, receive a connection request message from thefirst peripheral device receiving the first message in response to thereception of the connection request message, authenticate the firstperipheral device based on the first authentication informationassociated with the first peripheral device, and transmit screen databeing displayed on the display to the first peripheral device via thecommunication circuit based on the authentication being valid.

In accordance with another aspect of the present disclosure, a methodperformed by an electronic device comprises broadcasting a first messagevia a communication circuit, receiving a connection request message fromthe first peripheral device receiving the first message in response tothe reception of the connection request message, authenticating thefirst peripheral device based on first authentication informationassociated with the first peripheral device, and transmitting screendata being displayed on a display of the electronic device to the firstperipheral device via the communication circuit based on theauthentication being valid.

According to embodiments disclosed herein, the screen mirroring functionof the electronic device may be initiated at the request of the externaldevice.

According to embodiments disclosed herein, personal information of theuser of the electronic device may be protected through theauthentication procedure and various setting items.

In addition, various effects that are directly or indirectly understoodthrough this document may be provided.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses various example embodiments of the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certainembodiments of the present disclosure will be more apparent from thefollowing detailed description, taken in conjunction with theaccompanying drawings, in which:

FIG. 1 is a diagram illustrating an example operation environment of anelectronic device according to an embodiment;

FIG. 2 is a block diagram illustrating an example electronic deviceaccording to an embodiment;

FIG. 3 is a flowchart illustrating an example screen mirroring methoddepending on a request from a peripheral device according to anembodiment;

FIG. 4 is a signal flow diagram illustrating an example method forexchanging an authentication certificate between an electronic deviceand a peripheral device according to various embodiments;

FIG. 5 is a signal flow diagram illustrating an example method forauthenticating a peripheral device according to various embodiments;

FIG. 6 is a signal flow diagram illustrating an example method forscreen mirroring with a plurality of peripheral devices according tovarious embodiments;

FIG. 7 is a diagram illustrating an example of a connection screendisplayed on an electronic device according to an embodiment;

FIG. 8 is a diagram illustrating an example of a setting screendisplayed on an electronic device according to an embodiment;

FIG. 9 is a diagram illustrating an example method for unlocking anelectronic device during screen mirroring according to variousembodiments;

FIG. 10 is a diagram illustrating an example personal protectionfunction provided by an electronic device according to variousembodiments; and

FIG. 11 is a block diagram illustrating an electronic device in anetwork environment 1100 according to various embodiments.

DETAILED DESCRIPTION

FIG. 1 is a diagram illustrating an example operation environment of anelectronic device according to an embodiment.

In an embodiment, an electronic device 100 may perform a screenmirroring function with a peripheral device 200. The screen mirroringfunction may, for example, refer to as a function of displaying the samescreen as a screen displayed on the electronic device 100 on theperipheral device 200.

For example, the electronic device 100 may include a small electronicdevice, such as, for example, and without limitation, a smart phone, atablet PC, or the like. The peripheral device 200 may, for example, andwithout limitation, include a home appliance having a display (forexample, a TV, a refrigerator, or the like). However, the presentdisclosure is not limited to above, the screen mirroring may beperformed between the electronic devices 100, and/or between theperipheral devices 200 disclosed herein.

In order to perform screen mirroring function, the electronic device 100may transmit a connection request message to the peripheral device 200.The peripheral device 200 may transmit the connection request message tothe electronic device 100. In the former case, the screen of theelectronic device 100 may be shared at a request of an external device,so that there is a risk of exposure of personal information.

For example, when a connection request command is issued, the peripheraldevice 200 may transmit a connection request message to the electronicdevice 100. The connection request command may be generated, forexample, and without limitation, when a physical button provided on theperipheral device 200 is pressed (a), a button on a remote control ispressed (b), an instruction utterance (e.g., voice command) is received(c), or the like.

In an embodiment, when the electronic device 100 receives the connectionrequest message from the peripheral device 200, authentication withrespect to the peripheral device 200 may be performed. For example, theelectronic device 100 may perform authentication to check whether theperipheral device 200 is authorized to perform the screen mirroringfunction. The electronic device 100 may protect personal information ofa user of the electronic device 100 by performing the authentication.

When the electronic device 100 completes the authentication with respectto the peripheral device 200, the electronic device 100 may initiate thescreen mirroring with the peripheral device 200. The electronic device100 may transmit screen data to the peripheral device 200. Theperipheral device 200 may display the received screen data.

FIG. 2 is a block diagram illustrating an example electronic deviceaccording to an embodiment.

In an embodiment, the electronic device 100 may include a processor(e.g., including processing circuitry) 110, a memory 120, acommunication circuit 130, and a display 140. The processor 110 mayinclude various processing circuitry and control overall operation ofthe electronic device 100. The processor 110 may be referred to as, forexample, an application processor.

The memory 120 may store instructions for the operation of the processor110. When the instructions stored in the memory 120 are executed, theprocessor 110 may perform various operations and/or cause the electronicdevice to perform the various operations.

The memory 120 may store authentication information associated with theperipheral device 200. The electronic device 100 may authenticate theperipheral device 200 that is to perform the screen mirroring, using theauthentication information stored in the memory 120. For example, theauthentication information may be received from the peripheral device200 and stored. In various embodiments, the user may select theperipheral device 200 to allow the screen mirroring and obtainauthentication information. The electronic device 100 authenticates theperipheral device 200 using the obtained authentication information,thereby performing device-to-device authentication. The authenticationprocedure may be performed without an involvement of a separate server.

The communication circuit 130 may be configured to communicate with theperipheral device 200. The electronic device 100 may transmit andreceive data with the peripheral device 200 via the communicationcircuit 130. For example, the electronic device 100 may transmit thescreen data to the peripheral device 200 via the communication circuit130. The screen data may be referred to, for example, as data associatedwith a screen displayed on the display 140 of the electronic device 100.The peripheral device 200 may display the same screen as the screendisplayed on the electronic device 100 based on the received screendata. For example, the communication circuit 130 may be configured tocommunicate with the peripheral device 200 via Bluetooth, but thedisclosure is not limited thereto.

In various embodiments, the peripheral device 200 may be implementedincluding all or some of the components of the electronic device 100 ofFIG. 2. The peripheral device 200, like the electronic device 100, mayinclude, for example, and without limitation, at least a processor, amemory, a communication circuit, a display, and the like.

FIG. 3 is a flowchart illustrating an example screen mirroring methoddepending on a request from a peripheral device according to anembodiment.

With reference to FIG. 3, a screen mirroring method by a request of theperipheral device 200 according to an embodiment may, for example, andwithout limitation, include operation 301, 311, 321 and 331. Theoperation 301, 311, 321 and operation 331 may be, for example, performedby the electronic device 100 shown in FIG. 2. Each operation of theoperation 301, 311, 321 and operation 331 may be, for example,implemented with instructions that may be executed by the processor 110of the electronic device 100. The instructions may be stored in, forexample, and without limitation, a computer readable recording medium,the memory 120 of the electronic device 100 shown in FIG. 2, or thelike. Hereinafter, among a description of the operation 301, 311, 321and 331, a description overlapping with the description of FIG. 2 may beomitted.

In operation 301, the electronic device 100 may broadcast a firstmessage via the communication circuit 130. For example, the peripheraldevice 200 within a range of communication with the electronic device100 may receive the first message.

In an embodiment, the electronic device 100 may broadcast the firstmessage every predetermined period. The electronic device 100 maybroadcast the first message repeatedly at constant periods, therebyinforming the peripheral device 200 of availability of the screenmirroring function. For example, the first message may include, forexample, and without limitation, operating system (OS) information ofthe electronic device 100, type information, name of the electronicdevice 100, or the like.

In an embodiment, the electronic device 100 may broadcast the firstmessage based, for example, and without limitation, on a Bluetoothcommunication, or the like. In the case of Bluetooth, the first messagemay include a Bluetooth MAC address.

In operation 311, the electronic device 100 may receive a connectionrequest message from the first peripheral device 200 that received thefirst message.

The peripheral device 200 located near the electronic device 100 mayreceive the first message. For example, when the first message isbroadcasted based on the Bluetooth communication, the peripheral device200 located within a reach of the Bluetooth communication signal mayreceive the first message. When the peripheral device 200 receives thefirst message, it may be determined that the electronic device 100capable of screen mirroring is nearby.

In various embodiments, when a plurality of peripheral devices 200 existnear the electronic device 100, all of the plurality of peripheraldevices 200 may receive the first message. Hereinafter, a case where theconnection request message is received from a first peripheral device200 among the plurality of peripheral devices 200 is described as anexample, but it will be understood that the disclosure is not limitedthereto.

In various embodiments, when the peripheral device 200 receives thefirst message, an interface indicating that screen mirroring isavailable may be displayed on the display (e.g. the display 140 of FIG.2). When the peripheral device 200 receives a screen mirroring request(e.g., physical button input, utterance input, etc.) depending on theinterface, a connection request message may be transmitted to theelectronic device 100.

In operation 321, in response to the reception of the connection requestmessage, the electronic device 100 may perform authentication withrespect to the first peripheral device 200 based, for example, on firstauthentication information associated with the first peripheral device200.

The electronic device 100 may, for example, authenticate the firstperipheral device 200 using the first authentication information storedin advance in the memory 120. The first authentication information may,for example, be referred to as previously stored information toauthenticate the first peripheral device. For example, the firstauthentication information may include an authentication certificateobtained from the first peripheral device. An embodiment related to thisis described in greater detail below with reference to FIG. 4.

In operation 331, when the authentication is valid, the electronicdevice 100 may transmit screen data to the first peripheral device 200via the communication circuit 130. The first peripheral device 200 maydisplay the same screen as the screen of the electronic device 100 onthe display (for example, the display 140) based on the received screendata.

FIG. 4 is a signal flow diagram illustrating an example method forexchanging an authentication certificate between an electronic deviceand a peripheral device according to various embodiments.

In various embodiments, the authentication information associated withthe peripheral device 200 may, for example, include an authenticationcertificate received from the peripheral device 200. The electronicdevice 100 may perform the authentication with respect to the peripheraldevice 200 based on the authentication certificate stored in the memory120.

In an embodiment, the electronic device 100 may obtain theauthentication certificate of the peripheral device 200 from theperipheral device 200, and a server 300 that relays communication withthe peripheral device 200. The electronic device 100 may make a requestfor the authentication certificate associated with the peripheral device200 to the server 300 (401). For example, the electronic device 100 mayrequest to the server 300 in advance the authentication certificate ofthe peripheral device 200 that the electronic device 100 wants to sharethe screen thereof with.

In an embodiment, the server 300 may exchange the authenticationcertificate with the peripheral device 200 (403) and may transmit theauthentication certificate to the electronic device 100 (405). Theelectronic device 100 may store the received authentication certificate(407). When the connection request message is received from theperipheral device 200, thereafter the electronic device 100 mayauthenticate the peripheral device 200, using the stored authenticationcertificate.

In various embodiments, after receiving the authentication certificate,the electronic device 100 may perform a setting associated with theperipheral device 200 (409). The electronic device 100 may transmit setvalue associated with the performed setting to the server 300 (411), andthe server 300 may transmit the set value to the peripheral device 200(413).

For example, the electronic device 100 may set an on/off value of thescreen mirroring function with the peripheral device 200. Even whenreceiving the authentication certificate of the peripheral device 200,the electronic device 100 may determine whether to transmit the screendata based on the set value. In various embodiments, the electronicdevice 100 may transmit the set value to the server 300. In thisexample, when the server 300 mediates communication with the peripheraldevice 200, the server 300 may perform an operation depending on a setvalue previously received.

FIG. 5 is a signal flow diagram illustrating an example method forauthenticating a peripheral device according to various embodiments.

When the electronic device 100 receives the connection request from theperipheral device 200 (501), the peripheral device 200 may beauthenticated using the previously stored authentication certificate.Thus, a device to device connection between the electronic device 100and the peripheral device 200 may be performed without the involvementof an external server.

In an embodiment, when the electronic device 100 receives the connectionrequest message from the peripheral device 200, a connection with theperipheral device 200 may be established (503). For example, when theelectronic device 100 and the peripheral device 200 perform theBluetooth communication, the peripheral device 200 may establish theconnection with the electronic device 100 using the Bluetooth MACaddress of the electronic device 100.

In an embodiment, the peripheral device 200 may request a nonce valuefrom the electronic device 100 (505). The nonce value may refer, forexample, to an arbitrarily generated one-time number. The electronicdevice 100 may generate the nonce value and transmit the nonce value tothe peripheral device 200 (507). The peripheral device 200 may generatea signature using the nonce and the authentication certificate (509).For example, the peripheral device 200 may encrypt the nonce value usingthe authentication certificate. The encrypted value may be referred to,for example, as a signature. The peripheral device 200 may transmit thesignature value to the electronic device 100 (511).

In an embodiment, the electronic device 100 may determine whether theperipheral device 200 is trustworthy, using the received signature valueand the previously stored authentication certificate (513). For example,the electronic device 100 may decrypt the signature value using thepreviously stored authentication certificate and compare the decryptedvalue with the previously transmitted nonce value. When both have thesame value, the electronic device 100 may determine that the peripheraldevice 200 is trustworthy. When both have different values, theelectronic device 100 may determine that the peripheral device 200 is anuntrustworthy.

When the electronic device 100 determines that the peripheral device 200is trustworthy, the screen data may be transmitted to the peripheraldevice 200 (515). When the electronic device 100 determines that theperipheral device 200 is untrustworthy, an authentication invalidmessage may be transmitted to the peripheral device 200 (517). Theperipheral device 200 may disconnect the connection with the electronicdevice 100 established in operation 503 (519).

FIG. 6 is a signal flow diagram illustrating an example method forscreen mirroring with a plurality of peripheral devices according tovarious embodiments. FIG. 7 is a diagram illustrating an example of aconnection screen displayed on an electronic device according to anembodiment.

In various embodiments, the electronic device 100 may receive theconnection request from the peripheral device 200, but the electronicdevice 100 may transmit the connection request to the peripheral device.For example, with reference to FIG. 6, an example is illustrated inwhich the electronic device 100 receives the connection request from afirst peripheral device 201 (e.g. TV, or the like), and transmits theconnection request to a second peripheral device 205 (e.g. refrigerator,or the like). For example, screen mirroring with the first peripheraldevice 201 transmitted the connection request may be performed similarlyto the above-described FIG. 3 to FIG. 5 (operation 601, 603, 605, 607and operation 609), and a description thereof will not be repeated here.

In an embodiment, the electronic device 100 may detect a screenmirroring request with respect to the second peripheral device 205(611). For example, the request of the electronic device 100 may begenerated by the user of the electronic device 100. When the electronicdevice 100 detects the request, it may transmit a connection requestmessage to the second peripheral device 205 (613). When the electronicdevice 100 receives a confirmation message from the second peripheraldevice 205 (615), the electronic device 100 may transmit screen data tothe second peripheral device 205 (619).

In an embodiment, the electronic device 100 may display a connectionguide screen during connection with the peripheral device 200 (605,617). For example, the electronic device 100 may provide a differentconnection guide screen when the connection request is received from theperipheral device 200, and when the connection request is transmitted tothe peripheral device 200.

For example, the connection guide screen may include information andconnection status associated with the peripheral devices 201, 205, andmay be displayed via the display 140.

With reference to a screen 710, it may be displayed via a notificationwindow 712 that a connection request is received from a ‘Samsung 9Series TV’ which is the first peripheral device 201, and the connectionis currently in progress.

In an embodiment, when the electronic device 100 transmits a connectionrequest to the second peripheral device 205, the electronic device 100may display a notification window 724 such as a screen 720. It may bedisplayed via the notification window 724 that the electronic device 100transmitted a connection request to the ‘Samsung 9 Series TV’, and theconnection is currently in progress.

The notification windows 712 and 724 may be displayed differentlydepending on a transmitter, so that information about the transmittermay be provide to the user.

FIG. 8 is a diagram illustrating an example of a setting screendisplayed on an electronic device according to an embodiment.

In an embodiment, the electronic device 100 may, for example, andwithout limitation, display a setting screen such as a screen 810, 820and 830 with respect to the screen mirroring function. The electronicdevice 100 may receive setting information from the user based on thedisplayed setting screen. The setting information input on the settingscreen may be stored in the memory 120 of the electronic device 100.

With reference to the screen 810, the setting screen may include abutton for setting on and off for the screen mirroring function (forexample, visible to devices). When the screen mirroring function isturned on by the button, the electronic device 100 may broadcast a firstmessage, indicating that the screen mirroring is available, to theperipheral device 200. The electronic device 100 may be in a statecapable of receiving a connection request from the peripheral device 200located nearby. A setting screen may include a menu item for the screenmirroring (for example, visible to devices). With reference to thescreen 820, a screen 820 including a GUI related to the screen mirroringfunction may be displayed in response to a selection of the menu item.

With reference to the screen 830, a detailed setting screen for thescreen mirroring function is shown by way of non-limiting example. Thescreen 830 may include a list 832 of peripheral devices 200 capable ofthe screen mirroring. For example, the electronic device 100 may displaya peripheral device corresponding to the stored authenticationcertificate as a peripheral device connectable to the electronic device.

In various embodiments, the electronic device 100 may store a pluralityof authentication certificates in the memory 120. The plurality ofauthentication certificates may be referred to as authenticationcertificates received from a plurality of different peripheral devices.The electronic device 100 may display the plurality of peripheraldevices 200 corresponding to the plurality of authenticationcertificates stored in the memory 120 as displayable on the display 140.

In various embodiments, the electronic device 100 may store settinginformation regarding whether to allow the screen mirroring functionwith respect to the plurality of peripheral devices 200. For example,when the electronic device 100 receives the connection request from theperipheral device 200, even though the authentication is valid, whetherto transmit the screen data is determined based on the settinginformation. The electronic device 100 may be configured to transmit thescreen data to the peripheral device 200, only when the screen mirroringwith respect to the peripheral device 200 is allowed based on thesetting information. Thus, even when the electronic device 100 stores anauthentication certificate for a particular peripheral device 200,whether to allow the screen mirroring function with respect to theparticular peripheral device 200 may be determined depending on thesetting information.

In various embodiments, when a notification event associated with theexecution of the function of the electronic device 100 occurs, theelectronic device 100 may transmit data associated with the notificationevent to the peripheral device 200. The peripheral device 200 mayprovide the notification event via the display (e.g. the display 140)using the data associated with the notification event. For example, theperipheral device 200 may output a screen associated with thenotification event using the data.

The electronic device 100 may store setting information on whether toshare the notification event associated with a specific function withthe peripheral device 200 via the screen mirroring function. Forexample, the setting information may include setting information onwhether to transmit data associated with the notification event to thespecific peripheral device 200. The electronic device 100 may transmitthe data to the peripheral device 200 only when sharing of thenotification event is allowed based on the setting information.

For example, when a chat message is received to the electronic device100, and the chat message is popped up, and when an event notifying thechat message is shared via the peripheral device 200, the chat messagemay be disclosed to anyone other than the user of the electronic device100, so that there is a risk of disclosure of personal information. Theuser may enhance privacy by setting whether to share a notificationevent associated with a specific function execution with the peripheraldevice 200.

In various embodiments, the memory 120 of the electronic device 100 maystore a plurality of application programs. The electronic device 100 maystore setting information on whether to transmit data associated withthe notification event with respect to each of the plurality ofapplication programs.

With reference to the screen 830, setting information 834 about whetherto share notifications to each of the application programs may be storedin the electronic device 100. The user may decide whether to share anotification message associated with a specific application program.

FIG. 9 is a diagram illustrating an example method for unlocking anelectronic device during screen mirroring according to variousembodiments.

In various embodiments, when the screen mirroring request is receivedfrom the peripheral device 200 when the electronic device 100 is in alocked state, the screen of the electronic device 100 in the lockedstate may be displayed on the peripheral device 200. The electronicdevice 100 may, then, receive authentication information associated withthe electronic device 100 from the connected peripheral device 200. Theelectronic device 100 may change the locked state thereof to an unlockedstate thereof based on the received authentication information. Forexample, the authentication information associated with the electronicdevice may, for example, and without limitation, be a specific contentutterance, a specific numeral string, or the like.

With reference to FIG. 9, for example, when a voice encryption isconfigured to the electronic device 100, the electronic device 100 maydisplay a screen 912, and the peripheral device 200 may display a screen910. The user may utter the voice encryption with respect to theelectronic device 100 or the peripheral device 200 for unlocking. Whenthe user utters to the peripheral device 200, the peripheral device 200may transmit the received utterance to the electronic device 100. Theelectronic device 100 may change the locked state to the unlocked statebased on the received utterance. In another example, when the numeralstring code is configured to the electronic device 100, the peripheraldevice 200 may transmit a numeral string received by an input device,such as a remote control, to the electronic device 100.

In various embodiments, when the peripheral device 200 may not be ableto unlock the locked state (e.g. when a pattern-lock is set), theperipheral device 200 may display a screen 920, and direct the user tounlock via the electronic device 100. The electronic device 100 may alsodisplay a screen 922 that prompts the user to unlock.

FIG. 10 is a diagram illustrating an example personal protectionfunction provided by an electronic device according to variousembodiments.

In various embodiments, when the screen mirroring function is initiatedby the peripheral device 200, the electronic device 100 may providevarious functions for enhancing privacy protection.

With reference to a screen 1010, the electronic device 100 may displayan icon 1012 indicating that the screen mirroring function is currentlybeing executed. The electronic device 100 may display information,through the icon 1012, about whether the current screen mirroringfunction is requested and performed from the peripheral device 200 orrequested and performed from the electronic device 100. For example, inthe former case, the icon 1012 or an icon 1014 may be displayed. In thelatter case, an icon 1016 may be displayed. The electronic device 100may display shapes of the icons differently for both cases.

With reference to a screen 1020, when the icon 1012 is selected, theelectronic device 100 may provide a menu related to the currentlyperformed screen mirroring function. For example, the menu, such asstop/change device/disconnect with respect to the screen mirroringfunction may be provided.

With reference to a screen 1030, the electronic device 100 may provide adetailed setting screen for the screen mirroring function. For example,with respect to the privacy protection, the electronic device 100 mayprovide detailed setting items for “automatic screen off function”(e.g., “Screen timeout”) and “notification sharing function” (e.g.,“Notifications”).

In an embodiment, the electronic device 100 may stop transmitting thescreen data to the peripheral device 200 when the electronic device doesnot receive an input for a specified time. The above-mentioned functionmay be referred to as an automatic screen-off function. With referenceto a screen 1040, the time for automatically stopping the transmissionof the screen data may be set by the user.

With respect to a screen 1050, a method for sharing that thenotification occurred at the electronic device 100 (e.g. display thenotification without the detail, display only the fact that thenotification occurred) and an application program for sharing thenotification may be set by the user.

In various embodiments, contents set in the detailed setting item of‘automatic screen off function’ and ‘notification sharing function’ maybe applied only when the electronic device 100 receives the screenmirroring request from the external peripheral device 200. Since therisk of exposure of the personal information is relatively small whenthe screen mirroring request is made from the electronic device 100, thesetting of the setting item may be applied only when the screenmirroring request is received from the outside, and the screen data isautomatically transmitted.

While the present disclosure has been illustrated and described withreference to various example embodiments thereof, it will be understoodby those skilled in the art that various changes in form and details maybe made therein without departing from the spirit and scope of thepresent disclosure as defined, for example, by the appended claims andtheir equivalents.

FIG. 11 is a block diagram illustrating an electronic device 1101 in anetwork environment 1100 according to various embodiments. Referring toFIG. 11, the electronic device 1101 (e.g., electronic device 100,external peripheral device 200 of FIG. 1) in the network environment1100 may communicate with an electronic device 1102 via a first network1198 (e.g., a short-range wireless communication network), or anelectronic device 1104 or a server 1108 via a second network 1199 (e.g.,a long-range wireless communication network). According to anembodiment, the electronic device 1101 may communicate with theelectronic device 1104 via the server 1108. According to an embodiment,the electronic device 1101 may include a processor 1120, memory 1130, aninput device 1150, a sound output device 1155, a display device 1160, anaudio module 1170, a sensor module 1176, an interface 1177, a hapticmodule 1179, a camera module 1180, a power management module 1188, abattery 1189, a communication module 1190, a subscriber identificationmodule (SIM) 1196, or an antenna module 1197. In some embodiments, atleast one (e.g., the display device 1160 or the camera module 1180) ofthe components may be omitted from the electronic device 1101, or one ormore other components may be added in the electronic device 1101. Insome embodiments, some of the components may be implemented as singleintegrated circuitry. For example, the sensor module 1176 (e.g., afingerprint sensor, an iris sensor, or an illuminance sensor) may beimplemented as embedded in the display device 1160 (e.g., a display).

The processor 1120 may execute, for example, software (e.g., a program1140) to control at least one other component (e.g., a hardware orsoftware component) of the electronic device 1101 coupled with theprocessor 1120 and may perform various data processing or computation.According to one embodiment, as at least part of the data processing orcomputation, the processor 1120 may load a command or data received fromanother component (e.g., the sensor module 1176 or the communicationmodule 1190) in volatile memory 1132, process the command or the datastored in the volatile memory 1132, and store resulting data innon-volatile memory 1134. According to an embodiment, the processor 1120may include a main processor 1121 (e.g., a central processing unit (CPU)or an application processor (AP)), and an auxiliary processor 1123(e.g., a graphics processing unit (GPU), an image signal processor(ISP), a sensor hub processor, or a communication processor (CP)) thatis operable independently from, or in conjunction with, the mainprocessor 1121. Additionally or alternatively, the auxiliary processor1123 may be adapted to consume less power than the main processor 1121,or to be specific to a specified function. The auxiliary processor 1123may be implemented as separate from, or as part of the main processor1121.

The auxiliary processor 1123 may control at least some of functions orstates related to at least one component (e.g., the display device 1160,the sensor module 1176, or the communication module 1190) among thecomponents of the electronic device 1101, instead of the main processor1121 while the main processor 1121 is in an inactive (e.g., sleep)state, or together with the main processor 1121 while the main processor1121 is in an active state (e.g., executing an application). Accordingto an embodiment, the auxiliary processor 1123 (e.g., an image signalprocessor or a communication processor) may be implemented as part ofanother component (e.g., the camera module 1180 or the communicationmodule 1190) functionally related to the auxiliary processor 1123.

The memory 1130 may store various data used by at least one component(e.g., the processor 1120 or the sensor module 1176) of the electronicdevice 1101. The various data may include, for example, software (e.g.,the program 1140) and input data or output data for a command relatedthereto. The memory 1130 may include the volatile memory 1132 or thenon-volatile memory 1134.

The program 1140 may be stored in the memory 1130 as software, and mayinclude, for example, an operating system (OS) 1142, middleware 1144, oran application 1146.

The input device 1150 may receive a command or data to be used byanother component (e.g., the processor 1120) of the electronic device1101, from the outside (e.g., a user) of the electronic device 1101. Theinput device 1150 may include, for example, a microphone, a mouse, akeyboard, or a digital pen (e.g., a stylus pen).

The sound output device 1155 may output sound signals to the outside ofthe electronic device 1101. The sound output device 1155 may include,for example, a speaker or a receiver. The speaker may be used forgeneral purposes, such as playing multimedia or playing record, and thereceiver may be used for incoming calls. According to an embodiment, thereceiver may be implemented as separate from, or as part of the speaker.

The display device 1160 may visually provide information to the outside(e.g., a user) of the electronic device 1101. The display device 1160may include, for example, a display, a hologram device, or a projectorand control circuitry to control a corresponding one of the display,hologram device, and projector. According to an embodiment, the displaydevice 1160 may include touch circuitry adapted to detect a touch, orsensor circuitry (e.g., a pressure sensor) adapted to measure theintensity of force incurred by the touch.

The audio module 1170 may convert a sound into an electrical signal andvice versa. According to an embodiment, the audio module 1170 may obtainthe sound via the input device 1150 or output the sound via the soundoutput device 1155 or a headphone of an external electronic device(e.g., an electronic device 1102) directly (e.g., wiredly) or wirelesslycoupled with the electronic device 1101.

The sensor module 1176 may detect an operational state (e.g., power ortemperature) of the electronic device 1101 or an environmental state(e.g., a state of a user) external to the electronic device 1101, andthen generate an electrical signal or data value corresponding to thedetected state. According to an embodiment, the sensor module 1176 mayinclude, for example, a gesture sensor, a gyro sensor, an atmosphericpressure sensor, a magnetic sensor, an acceleration sensor, a gripsensor, a proximity sensor, a color sensor, an infrared (IR) sensor, abiometric sensor, a temperature sensor, a humidity sensor, or anilluminance sensor.

The interface 1177 may support one or more specified protocols to beused for the electronic device 1101 to be coupled with the externalelectronic device (e.g., the electronic device 1102) directly (e.g.,wiredly) or wirelessly. According to an embodiment, the interface 1177may include, for example, a high definition multimedia interface (HDMI),a universal serial bus (USB) interface, a secure digital (SD) cardinterface, or an audio interface.

A connecting terminal 1178 may include a connector via which theelectronic device 1101 may be physically connected with the externalelectronic device (e.g., the electronic device 1102). According to anembodiment, the connecting terminal 1178 may include, for example, aHDMI connector, a USB connector, a SD card connector, or an audioconnector (e.g., a headphone connector).

The haptic module 1179 may convert an electrical signal into amechanical stimulus (e.g., a vibration or a movement) or electricalstimulus which may be recognized by a user via his tactile sensation orkinesthetic sensation. According to an embodiment, the haptic module1179 may include, for example, a motor, a piezoelectric element, or anelectric stimulator.

The camera module 1180 may capture a still image or moving images.According to an embodiment, the camera module 1180 may include one ormore lenses, image sensors, image signal processors, or flashes.

The power management module 1188 may manage power supplied to theelectronic device 1101. According to one embodiment, the powermanagement module 1188 may be implemented as at least part of, forexample, a power management integrated circuit (PMIC).

The battery 1189 may supply power to at least one component of theelectronic device 1101. According to an embodiment, the battery 1189 mayinclude, for example, a primary cell which is not rechargeable, asecondary cell which is rechargeable, or a fuel cell.

The communication module 1190 may support establishing a direct (e.g.,wired) communication channel or a wireless communication channel betweenthe electronic device 1101 and the external electronic device (e.g., theelectronic device 1102, the electronic device 1104, or the server 1108)and performing communication via the established communication channel.The communication module 1190 may include one or more communicationprocessors that are operable independently from the processor 1120(e.g., the application processor (AP)) and supports a direct (e.g.,wired) communication or a wireless communication. According to anembodiment, the communication module 1190 may include a wirelesscommunication module 1192 (e.g., a cellular communication module, ashort-range wireless communication module, or a global navigationsatellite system (GNSS) communication module) or a wired communicationmodule 1194 (e.g., a local area network (LAN) communication module or apower line communication (PLC) module). A corresponding one of thesecommunication modules may communicate with the external electronicdevice via the first network 1198 (e.g., a short-range communicationnetwork, such as Bluetooth™, wireless-fidelity (Wi-Fi) direct, orinfrared data association (IrDA)) or the second network 1199 (e.g., along-range communication network, such as a cellular network, theInternet, or a computer network (e.g., LAN or wide area network (WAN)).These various types of communication modules may be implemented as asingle component (e.g., a single chip), or may be implemented as multicomponents (e.g., multi chips) separate from each other. The wirelesscommunication module 1192 may identify and authenticate the electronicdevice 1101 in a communication network, such as the first network 1198or the second network 1199, using subscriber information (e.g.,international mobile subscriber identity (IMSI)) stored in thesubscriber identification module 1196.

The antenna module 1197 may transmit or receive a signal or power to orfrom the outside (e.g., the external electronic device) of theelectronic device 1101. According to an embodiment, the antenna module1197 may include an antenna including a radiating element composed of aconductive material or a conductive pattern formed in or on a substrate(e.g., PCB). According to an embodiment, the antenna module 1197 mayinclude a plurality of antennas. In such a case, at least one antennaappropriate for a communication scheme used in the communicationnetwork, such as the first network 1198 or the second network 1199, maybe selected, for example, by the communication module 1190 (e.g., thewireless communication module 1192) from the plurality of antennas. Thesignal or the power may then be transmitted or received between thecommunication module 1190 and the external electronic device via theselected at least one antenna. According to an embodiment, anothercomponent (e.g., a radio frequency integrated circuit (RFIC)) other thanthe radiating element may be additionally formed as part of the antennamodule 1197.

At least some of the above-described components may be coupled mutuallyand communicate signals (e.g., commands or data) therebetween via aninter-peripheral communication scheme (e.g., a bus, general purposeinput and output (GPIO), serial peripheral interface (SPI), or mobileindustry processor interface (MIPI)).

According to an embodiment, commands or data may be transmitted orreceived between the electronic device 1101 and the external electronicdevice 1104 via the server 1108 coupled with the second network 1199.Each of the electronic devices 1102 and 1104 may be a device of a sametype as, or a different type, from the electronic device 1101. Accordingto an embodiment, all or some of operations to be executed at theelectronic device 1101 may be executed at one or more of the externalelectronic devices 1102, 1104, or 1108. For example, if the electronicdevice 1101 should perform a function or a service automatically, or inresponse to a request from a user or another device, the electronicdevice 1101, instead of, or in addition to, executing the function orthe service, may request the one or more external electronic devices toperform at least part of the function or the service. The one or moreexternal electronic devices receiving the request may perform the atleast part of the function or the service requested, or an additionalfunction or an additional service related to the request and transfer anoutcome of the performing to the electronic device 1101. The electronicdevice 1101 may provide the outcome, with or without further processingof the outcome, as at least part of a reply to the request. To that end,a cloud computing, distributed computing, or client-server computingtechnology may be used, for example.

The electronic device according to various embodiments may be one ofvarious types of electronic devices. The electronic devices may include,for example, a portable communication device (e.g., a smartphone), acomputer device, a portable multimedia device, a portable medicaldevice, a camera, a wearable device, or a home appliance. According toan embodiment of the disclosure, the electronic devices are not limitedto those described above.

It should be appreciated that various embodiments of the presentdisclosure and the terms used therein are not intended to limit thetechnological features set forth herein to particular embodiments andinclude various changes, equivalents, or replacements for acorresponding embodiment. With regard to the description of thedrawings, similar reference numerals may be used to refer to similar orrelated elements. It is to be understood that a singular form of a nouncorresponding to an item may include one or more of the things, unlessthe relevant context clearly indicates otherwise. As used herein, eachof such phrases as “A or B,” “at least one of A and B,” “at least one ofA or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least oneof A, B, or C,” may include any one of, or all possible combinations ofthe items enumerated together in a corresponding one of the phrases. Asused herein, such terms as “1st” and “2nd,” or “first” and “second” maybe used to simply distinguish a corresponding component from another anddoes not limit the components in other aspect (e.g., importance ororder). It is to be understood that if an element (e.g., a firstelement) is referred to, with or without the term “operatively” or“communicatively”, as “coupled with,” “coupled to,” “connected with,” or“connected to” another element (e.g., a second element), it means thatthe element may be coupled with the other element directly (e.g.,wiredly), wirelessly, or via a third element.

As used herein, the term “module” may include a unit implemented inhardware, software, or firmware, and may interchangeably be used withother terms, for example, “logic,” “logic block,” “part,” or“circuitry”. A module may be a single integral component, or a minimumunit or part thereof, adapted to perform one or more functions. Forexample, according to an embodiment, the module may be implemented in aform of an application-specific integrated circuit (ASIC).

Various embodiments as set forth herein may be implemented as software(e.g., the program 1140) including one or more instructions that arestored in a storage medium (e.g., internal memory 1136 or externalmemory 1138) that is readable by a machine (e.g., the electronic device1101). For example, a processor (e.g., the processor 1120) of themachine (e.g., the electronic device 1101) may invoke at least one ofthe one or more instructions stored in the storage medium, and executeit, with or without using one or more other components under the controlof the processor. This allows the machine to be operated to perform atleast one function according to the at least one instruction invoked.The one or more instructions may include a code generated by a complieror a code executable by an interpreter. The machine-readable storagemedium may be provided in the form of a non-transitory storage medium.Wherein, the term “non-transitory” simply means that the storage mediumis a tangible device, and does not include a signal (e.g., anelectromagnetic wave), but this term does not differentiate betweenwhere data is semi-permanently stored in the storage medium and wherethe data is temporarily stored in the storage medium.

According to an embodiment, a method according to various embodiments ofthe disclosure may be included and provided in a computer programproduct. The computer program product may be traded as a product betweena seller and a buyer. The computer program product may be distributed inthe form of a machine-readable storage medium (e.g., compact disc readonly memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded)online via an application store (e.g., PlayStore™), or between two userdevices (e.g., smart phones) directly. If distributed online, at leastpart of the computer program product may be temporarily generated or atleast temporarily stored in the machine-readable storage medium, such asmemory of the manufacturer's server, a server of the application store,or a relay server.

According to various embodiments, each component (e.g., a module or aprogram) of the above-described components may include a single entityor multiple entities. According to various embodiments, one or more ofthe above-described components may be omitted, or one or more othercomponents may be added. Alternatively or additionally, a plurality ofcomponents (e.g., modules or programs) may be integrated into a singlecomponent. In such a case, according to various embodiments, theintegrated component may still perform one or more functions of each ofthe plurality of components in the same or similar manner as they areperformed by a corresponding one of the plurality of components beforethe integration. According to various embodiments, operations performedby the module, the program, or another component may be carried outsequentially, in parallel, repeatedly, or heuristically, or one or moreof the operations may be executed in a different order or omitted, orone or more other operations may be added.

What is claimed is:
 1. An electronic device comprising: a display; acommunication circuit configured to communicate with a first peripheraldevice; a memory configured to store first authentication informationassociated with the first peripheral device; and a processor, whereinthe processor is configured to control the electronic device to:broadcast a first message via the communication circuit; receive aconnection request message from the first peripheral device receivingthe first message; authenticate the first peripheral device based on thefirst authentication information associated with the first peripheraldevice in response to the reception of the connection request message;and transmit screen data being displayed on the display to the firstperipheral device via the communication circuit based on theauthentication being valid.
 2. The electronic device of claim 1, whereinthe first authentication information includes a first authenticationcertificate received from the first peripheral device, and wherein theprocessor is further configured to control the electronic device toauthenticate the first peripheral device based on the firstauthentication certificate.
 3. The electronic device of claim 1, whereinthe memory is configured to store an authentication certificateassociated with at least one peripheral device, and wherein theprocessor is further configured to control the display to provide anindication that the at least one peripheral device corresponding to thestored an authentication certificate is connectable to the electronicdevice.
 4. The electronic device of claim 1, wherein the processor isfurther configured to control the electronic device to broadcast thefirst message at a predetermined period.
 5. The electronic device ofclaim 1, wherein the processor is further configured to control theelectronic device to stop the transmission of the screen data to thefirst peripheral device based on the electronic device not receiving aninput from the first peripheral device for a specified time.
 6. Theelectronic device of claim 1, wherein the memory is configured to storesetting information associated with the first peripheral device.
 7. Theelectronic device of claim 1, wherein the processor is furtherconfigured to control the electronic device to transmit data associatedwith a notification event to the first peripheral device based onsetting information about the first peripheral device based on thenotification event associated with an execution of a function of theelectronic device occurring.
 8. The electronic device of claim 7,wherein the setting information includes setting information on whetherto transmit data associated with the notification event to the firstperipheral device.
 9. The electronic device of claim 8, wherein thememory is configured to store a plurality of application programs, andwherein the setting information includes setting information for each ofthe plurality of application programs on whether to transmit dataassociated with the notification event occurring from each of theplurality of application programs.
 10. The electronic device of claim 7,wherein the processor is further configured to control the electronicdevice to transmit the screen data to the first peripheral device basedon the authentication being valid and screen mirroring with the firstperipheral device being determined to be allowed based on the settinginformation.
 11. The electronic device of claim 1, wherein thecommunication circuit is further configured to communicate with a secondperipheral device, wherein the memory is configured to storeauthentication information associated with the second peripheral device,wherein the processor is further configured to control the electronicdevice to: transmit a second connection request message to the secondperipheral device; and transmit the screen data being displayed on thedisplay to the second peripheral device based on a confirmation messagebeing received from the second peripheral device as a response to thesecond connection request message.
 12. The electronic device of claim11, wherein the processor is further configured to control theelectronic device to: display a first icon on the display whiletransmitting the screen data to the first peripheral device, wherein thefirst icon indicates that the screen data is being transmitted to thefirst peripheral device; and display a second icon on the display whiletransmitting the screen data to the second peripheral device, whereinthe second icon indicates that the screen data is being transmitted tothe second peripheral device.
 13. The electronic device of claim 1,wherein the processor is further configured to control the electronicdevice to: receive authentication information associated with unlockingthe electronic device from the first peripheral device; and change astate of the electronic device from a locked state to an unlocked statebased on the authentication information.
 14. The electronic device ofclaim 13, wherein the authentication information associated withunlocking the electronic device includes at least one of: a specificcontent utterance, and a specific numeral string.
 15. A method performedby an electronic device, the method comprising: broadcasting a firstmessage via a communication circuit; receiving a connection requestmessage from a first peripheral device receiving the first message;authenticating the first peripheral device based on first authenticationinformation associated with the first peripheral device in response tothe reception of the connection request message; and transmitting screendata being displayed on a display of the electronic device to the firstperipheral device via the communication circuit based on theauthentication being valid.
 16. The method of claim 15, wherein thefirst authentication information includes a first authenticationcertificate received from the first peripheral device, and wherein theauthenticating of the first peripheral device includes authenticatingthe first peripheral device based on the first authenticationcertificate.
 17. The method of claim 15, wherein broadcasting of thefirst message includes broadcasting the first message at a predeterminedperiod.
 18. The method of claim 15, further comprising stopping thetransmission of the screen data to the first peripheral device based onthe electronic device not receiving an input from the first peripheraldevice for a specified time.
 19. The method of claim 15, furthercomprising: transmitting a second connection request message to a secondperipheral device; and transmitting the screen data being displayed onthe display to the second peripheral device based on a confirmationmessage being received from the second peripheral device as a responseto the second connection request message.
 20. The method of claim 19,further comprising: displaying a first icon on the display whiletransmitting the screen data to the first peripheral device, wherein thefirst icon indicates that the screen data is being transmitted to thefirst peripheral device; and displaying a second icon on the displaywhile transmitting the screen data to the second peripheral device,wherein the second icon indicates that the screen data is beingtransmitted to the second peripheral device.